/**
 * 判断系统管理员manager的登录状态,在页面加载之前
 */
window.onload = function() {
	// 发出一个请求
	$.ajax({
		url : "/studentmanagement/login/mgr/loginstatus.do",
		cache : false,
		async : false,
		type : "POST",
		dataType : "json",
		success : function(result) {
			var status = result.status;
			if (status == 0) {
				$.messager.alert("提示", result.message, "warning", function() {
					top.location.href = "/studentmanagement/login.html";
				});
			}
		},
		error : function() {
			$.messager.alert("提示", "系统出错返回登录界面", "warning");
			top.location.href = "/studentmanagement/login.html";
		}
	});
}